package com.example;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import com.example.domain.Hero;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 本类用来演示:  多文件配置中心,获取文件内容
 *
 * @Author 胡英俊
 * @Date 2022/7/27 22:03
 */
@RestController
public class getInfoController {
    @Autowired
    private Hero hero;
    @GetMapping("getInfo")
    public String getInfo(){
        return hero.getName()+hero.getAddress()+hero.getAge()+hero.getHobby();
    }
}
